package com.javasm.domin.entity.base;

import com.javasm.common.util.RedisDistUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

@Setter
@Getter
@ToString
public class UserPojoRes implements Serializable {
    private static final long serialVersionUID = -2145503717390503506L;

    /**
     * 主键
     */
    private String id;
    /**
     * 姓名
     */
    private String name;


    /**
     * 性别
     */
    private int sex;


    /**
     * 性别展示
     */
    private String sexStr;


    /**
     * 消息
     */
    private String msg;


    public String getSexStr() {
        return RedisDistUtil.ramTransformStr("color",this.sex);
//        return RedisDistUtil.transformStr("color",this.sex);
    }
}
